// 自动生成模板UmsMemberCollectSpu
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// umsMemberCollectSpu表 结构体  UmsMemberCollectSpu
type UmsMemberCollectSpu struct {
	Id         *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                //id
	MemberId   *int       `json:"memberId" form:"memberId" gorm:"comment:会员id;column:member_id;size:19;"`      //会员id
	SpuId      *int       `json:"spuId" form:"spuId" gorm:"comment:spu_id;column:spu_id;size:19;"`             //spu_id
	SpuName    *string    `json:"spuName" form:"spuName" gorm:"comment:spu_name;column:spu_name;size:500;"`    //spu_name
	SpuImg     *string    `json:"spuImg" form:"spuImg" gorm:"comment:spu_img;column:spu_img;size:500;"`        //spu_img
	CreateTime *time.Time `json:"createTime" form:"createTime" gorm:"comment:create_time;column:create_time;"` //create_time
}

// TableName umsMemberCollectSpu表 UmsMemberCollectSpu自定义表名 ums_member_collect_spu
func (UmsMemberCollectSpu) TableName() string {
	return "ums_member_collect_spu"
}

type UmsMemberCollectSpuRepo interface {
}

type UmsMemberCollectSpuUsecase struct {
	repo UmsMemberCollectSpuRepo
	log  *log.Helper
}

func NewUmsMemberCollectSpuUsecase(repo GreeterRepo, logger log.Logger) *UmsMemberCollectSpuUsecase {
	return &UmsMemberCollectSpuUsecase{repo: repo, log: log.NewHelper(logger)}
}
